﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Aga.Psad.Mvc.Services.Dtos;

namespace Aga.Psad.Mvc.Services
{
    [ServiceContract]
    public interface IUploadDataService
    {
        [OperationContract]
        bool CheckService();

        [OperationContract]
        int NuevoDeclarante(ClienteDto declarante);

        [OperationContract]
        int NuevoImportador(ClienteDeClienteDto improtador);

        [OperationContract]
        void NuevoDespacho(DespachoDto despacho);

        [OperationContract]
        void ActualizarDespacho(DespachoDto despacho);

        [OperationContract]
        DespachoDto ObtenerDespachoPorLegajo(string legajo);

        [OperationContract]
        ClienteDto ObtenerDeclarantePorExId(int exId);

        [OperationContract]
        ClienteDeClienteDto ObtenerImportadorPorExId(int exId);

        [OperationContract]
        ClienteDeClienteDto ObtenerImportadorPorCuit(int clienteExId, string cuitImprotador);

        [OperationContract] 
        ClienteDto[] ObtenerTodosLosDeclarantes();

        [OperationContract]
        ClienteDeClienteDto[] ObtenerTodosLosImportadores();

        [OperationContract]
        ClienteDeClienteDto[] ObtenerImportadoresPorClienteId(int clienteId);
    }
}
